export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  grid: false,
  gridBtn: false,
  dialogDrag: true,
  defaultSort: {
    prop: 'updateTime',
    order: 'descending'
  },
  column: [
    {
      label: '主键',
      prop: 'id',
      type: 'input',
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true
    },
    {
      label: 'API任务ID',
      prop: 'apiTaskId',
      type: 'input',
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true
    },
    {
      label: '号码',
      prop: 'phone',
      type: 'input',
      rules: [{
        required: true,
        message: '请输入号码',
        trigger: 'blur'
      }],
      search: true,
      searchSpan: 4
    },
    {
      label: 'Api链接',
      prop: 'apiUrl',
      type: 'input',
      overHidden: true,
      hide: true
    },
    {
      label: '国家',
      prop: 'countryId',
      type: 'select',
      dicUrl: '/biz/search/select/country',
      dicHeaders: { crypto: true },
      dicMethod: 'post',
      dataType: 'string',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      search: true,
      searchSpan: 4,
      searchLabelWidth: 75,
      filterable: true,
      virtualize: true,
      rules: [{
        required: true,
        message: '请输入国家',
        trigger: 'blur'
      }]
    },
    {
      label: '设备类型',
      prop: 'deviceType',
      type: 'select',
      dicUrl: '/biz/search/dictionary/dict-biz',
      dicHeaders: { crypto: true },
      dicQuery: { code: 'device' },
      dicMethod: 'post',
      dataType: 'number',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      value: 1,
      search: true,
      searchSpan: 4,
      searchLabelWidth: 100,
      filterable: true,
      virtualize: true,
      rules: [{
        required: true,
        message: '请输入设备类型',
        trigger: 'blur'
      }]
    },
    {
      label: '代理平台',
      prop: 'proxyPlatformId',
      type: 'tree',
      dicUrl: '/biz/search/select/task-proxy-platform',
      dicHeaders: { crypto: true },
      dicMethod: 'post',
      dataType: 'string',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      rules: [{
        required: true,
        message: '请输入代理平台',
        trigger: 'blur'
      }],
      hide: true
    },
    {
      label: '验证码',
      prop: 'code',
      type: 'input',
      hide: true
    },
    {
      label: '原因',
      prop: 'reason',
      type: 'input',
      search: true,
      searchSpan: 4,
      searchLabelWidth: 75
    },
    {
      label: 'token',
      prop: 'token',
      type: 'input',
      overHidden: true,
      hide: true
    },
    {
      label: '名称',
      prop: 'name',
      type: 'input',
      hide: true
    },
    {
      label: '发送次数',
      prop: 'sendCount',
      type: 'number',
      controls: false
    },
    {
      label: '重试时间',
      prop: 'retryTime',
      type: 'datetime',
      format: 'YYYY-MM-DD HH:mm:ss',
      width: 180
    },
    {
      label: '流量(K)',
      prop: 'traffic',
      type: 'input'
    },
    {
      label: '更新时间',
      prop: 'updateTime',
      type: 'datetime',
      format: 'YYYY-MM-DD HH:mm:ss',
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
      startPlaceholder: '开始日期',
      endPlaceholder: '结束日期',
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      search: true,
      searchRange: true,
      searchSpan: 8,
      searchOrder: 99,
      sortable: 'custom',
      width: 180
    },
    {
      label: '状态',
      prop: 'status',
      type: 'select',
      dicUrl: '/biz/search/dictionary/dict-biz',
      dicHeaders: { crypto: true },
      dicQuery: { code: 'sms_phone_status' },
      dicMethod: 'post',
      dataType: 'number',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      value: 1,
      search: true,
      searchSpan: 4,
      searchLabelWidth: 75,
      filterable: true,
      virtualize: true,
      width: 95,
      fixed: 'right'
    }
  ]
};
